package sk.naive.talker.props;

/**
 * NumericLongProperty.
 *
 * @author <a href="mailto:rytier@naive.deepblue.sk">Martin "Rytier" Kerni</a>
 * @version $Revision: 1.1 $ $Date: 2005/01/11 23:52:53 $
 */
public class NumericLongProperty extends SimpleProperty {
	public Long defaultValue() {
		return 0L;
	}

	public Object toObject(String s) {
		return Long.parseLong(s);
	}

	public boolean checkValue(Object o) {
		return ((Long) o) >= 0;
	}
}
